{adminMenuBar}
<script>
$(document).ready(function() {
	$("#userIdSearch").focus(function(){
		$("#userIdSearch").val('');
	});
	$("#userIdSearch").autocomplete({
		source : "/ajax/usernameSearch?type=all",
		minLength : 2,
		select : function(event, ui) {
			$("#userIdSearch").val(ui.item.id);
			$("#userIdInput").val(ui.item.id);
			return false;
		}
	});
});
</script>
<form action="/admin/logViewer" method="POST">
<table cellspacing="0px">
	<tr>
		<th>Type Filter</th>
		<th>User Filter</th>
		<th></th>
	</tr>
	<tr>
		<td>
			<select name="logType">
				<option value="0" {selected0}>{i18n:logType_all}</option>
				<option value="1" {selected1}>{i18n:logType_item}</option>
				<option value="2" {selected2}>{i18n:logType_user}</option>
				<option value="3" {selected3}>{i18n:logType_admin}</option>
				<option value="4" {selected4}>{i18n:logType_vshop}</option>
				<option value="5" {selected5}>{i18n:logType_message}</option>
			</select>
		</td>
		<td>
			<input type="text" id="userIdSearch" name="logUserId" value="{logUserId}" />
		</td>
		<td>
			<input type="submit" value="{i18n:logViewer_filter}">
		</td>
	</tr>
</table>
</form>

<p>{pageLinks}</p>
<p>
	<table width="100%" cellspacing="0px" cellpadding="3px">
  		<tr>
  			<th width="40px" align="center">{i18n:logViewer_type}</th>
  			<th width="110px">{i18n:date}</th>
  			<th width="100px">{i18n:time}</th>
  			<th width="60px">User</th>
  			<th>{i18n:message}</th>
  		</tr>
		{logEntries}
	</table>
</p>
<p>{pageLinks}</p>